#ifndef SLIDINGVERIFICATIONDIALOG_H
#define SLIDINGVERIFICATIONDIALOG_H

#include <QDialog>
#include <QLabel>

namespace Ui {
class SlidingVerificationDialog;
}

class SlidingVerificationDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SlidingVerificationDialog(QWidget *parent = nullptr);
    ~SlidingVerificationDialog();

private slots:
    void on_horizontalSlider_valueChanged(int value);

    void on_horizontalSlider_sliderReleased();

signals:
    void sig_result(bool result);//滑动窗口是否验证成功，成功则发送信号true，反之发送false

private:
    Ui::SlidingVerificationDialog *ui;
    int x;//缺口x坐标
    int m_x;//滑块图片x坐标
    int y;//共同的y坐标

    //截取图片大小
    int width_copy= 70;
    int height_copy= 70;

    QLabel *label_gap;//滑动图片
};

#endif // SLIDINGVERIFICATIONDIALOG_H
